<%-- 
    Document   : sv_description
    Created on : Nov 6, 2013, 1:59:48 AM
    Author     : Admin
--%>

<%@ include file="/WEB-INF/jsp/include/page_header.jspf" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>.: Admin : Add Priority :.</title>    
        <script type="text/javascript">
            function unblockUI() {
                $.unblockUI();
            }

            function blockUI() {
                $.blockUI();
            }
        </script>
    </head>
    <body>
        <s:messages/>
        <s:errors/>
        <s:useActionBean beanclass="exatrez.stripes.util.ShipVisitListUtil" var="visitlist"/>
        <s:form beanclass="exatrez.stripes.action.SvDescriptionAction" name="form1">               
            <div>
                <fieldset>
                    <div id="page-title">
                        <span class="title">Add Ship Visit Description</span>
                    </div>
                    <p>
                        <label>Ship Visit Description ID :</label>
                        <s:text name="id" id="svId" size="30" />
                    </p>
                    <p>
                        <label>Ship Visit Header :</label>
                        <s:select name="hId" id="svHeader">
                            <s:option value="">Please Choose</s:option>
                            <s:options-collection collection="${visitlist.listHeader}" label="description" value="svHeaderId"/>
                        </s:select>
                    </p>
                    <p>
                        <label>Description :</label>
                        <s:textarea name="desc" id="desc" rows="7" cols="70"/>
                    </p>
                    <p>
                        <label>Sorting Number :</label>
                        <s:text name="sortNum" id="sortNum" />
                    </p>
                    <p>
                        <label>&nbsp;</label>
                        <s:submit name="save" value="Submit" class="btn" />
                    </p>
                </fieldset>
            </div>
            <div>
                <display:table class="tablecloth" name="${actionBean.listDesc}" requestURI="/shipVisitDesc" id="line" pagesize="30">
                    <display:column title="No." >${line_rowNum}</display:column>
                    <display:column title="SV Description ID" property="svDescId" />
                    <display:column title="Header" property="svHeaderId.description" style="text-align:left;" />
                    <display:column title="Description" property="description" style="text-align:left;" />
                    <display:column title="Sorting Number" property="sortNumber" />  
                    <display:column title="Action">delete</display:column>
                </display:table>
            </div>
        </s:form>
    </body>
</html>